-
Notifications
You must be signed in to change notification settings - Fork 1
Deploy Rust on Google Cloud C4A (Arm-based Axion VMs) #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| This section demonstrates how to benchmark Rust performance using **official Rust benchmarking tools** — `cargo bench` and the **Criterion** library — to measure code execution speed, stability, and performance consistency on Arm64 hardware. | ||
|
|
||
| ### Verify Rust and Cargo | ||
| Ensure that Rust and Cargo are properly installed before running benchmarks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you missed adding steps to verify the installation???
Probably below:
rustc --version
cargo --version| cd rust-benchmark | ||
| ``` | ||
| ### Add Criterion Benchmarking Dependency | ||
| **Criterion** is the officially recommended benchmarking crate for Rust.Add it to your project by editing the `Cargo.toml` file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| **Criterion** is the officially recommended benchmarking crate for Rust.Add it to your project by editing the `Cargo.toml` file: | |
| **Criterion** is the officially recommended benchmarking crate for Rust. Add it to your project by editing the `Cargo.toml` file: |
| ``` | ||
| ### Add Criterion Benchmarking Dependency | ||
| **Criterion** is the officially recommended benchmarking crate for Rust.Add it to your project by editing the `Cargo.toml` file: | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is cargo.toml located?? Mention the location clearly.
| Benchmark files in this directory are automatically detected by Cargo. | ||
|
|
||
| **Add the Benchmark Code** | ||
| Paste the following benchmark code: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add spacing to avoid overlapping of lines. Check on Hugo.
Signed-off-by: odidev <[email protected]>
No description provided.